<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/19
  Time: 11:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/web_top.jsp" %>
<title>合同管理</title>
<div ng-include="loanIng" class="includeStyle "><!--待前合同-->


    <div class="bgSortScroll">
        <!-- ngIf: HbHr.hr101 -->
        <div id="main_content" style="display: block">

            <div class="public-bgContent " ng-init="load()" ng-if="HbHr.hr101">
                <!--表单搜索-->
                <div class="public-bgDate">
                    <span><input type="text" autocomplete="off" id="start_time" ng-focus="remHight()"
                                 ng-class="{'error':redErr.dateTime}"
                                 placeholder="开始时间" ng-model="param.beginTime"
                                 class="ng-pristine ng-untouched ng-valid ng-empty datepicker"><i
                            class="iconfont icon-riqi"></i></span>
                    <em>&nbsp;&nbsp;~&nbsp;&nbsp;</em>
                    <span><input type="text" autocomplete="off" id="end_time" ng-focus="remHight()"
                                 ng-class="{'error':redErr.dateTime}"
                                 placeholder="结束时间" ng-model="param.endTime"
                                 class="ng-pristine ng-untouched ng-valid ng-empty datepicker"><i
                            class="iconfont icon-riqi"></i></span>
                    <div class="se-re">
                        <select id="seleNames" ng-model="param.type" ng-class="{'error':redErr.seleName}"
                                ng-focus="remHight()" ng-change="changeName()"
                                class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">选择字段</option>
                            <option value="1">借款编号</option>
                            <option value="2">客户姓名</option>
                            <option value="3">手机号码</option>
                            <option value="4">身份证号码</option>
                            <option value="5">业务员姓名</option>
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <span>
                    <input type="text" autocomplete="off" id="inputNames" placeholder="请输入关键字" ng-focus="remHight()"
                           ng-model="param.keyword"
                           class="ng-pristine ng-untouched ng-valid ng-empty">
		            </span>
                    <div id="contract_head_date" style="display: inline-block"></div>
                    <div class="se-re">
                        <select id="loan_way_select" ng-model="param.loan_way"
                                class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">贷款方式</option>
                        </select>
                        <script type="text/x-handlebars-template" id="loanMethod_list_tpl">
                            {{#each content}}
                            <option value="{{id}}">{{name}}</option>
                            {{/each}}
                        </script>
                        <span class="se-po"></span>
                    </div>
                    <div class="se-re">
                        <select id="product_choose_list" class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="">选择产品</option>
                            <%--<option value="1">按揭短拆</option>
                            <option value="2">红本抵押</option>
                            <option value="3">红本质押</option>--%>
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <button ng-click="btn(1)" class="serach_orderMortgageList">
                        <i class="iconfont icon-sousuo"></i>
                    </button>
                </div>
                <!--提示操作-->


                <div class="public-bghint">
                    <span ng-click="show()" style="cursor: pointer;">提示操作</span>
                    <i class="iconfont icon-icon-copy-copy"></i>
                    <span class="calNum">筛选<span class="" id="total">0</span>条结果</span>
                </div>
                <ul class="public-ulList" ng-show="loanIngShow">
                    <li>显示拥有该栏目管理权限的数据；</li>
                    <li>拥有权限的管理员会显示对应的操作按钮；</li>
                    <li>显示所属分公司下的所有业务员的合同</li>
                </ul>
                <div style="height: 20px;"></div>
                <div class="table-scroll">
                    <!--tabel 列表-->
                    <table class="table public-table PoInput">
                        <thead>
                        <tr>
                            <td>选择</td>
                            <td>创单时间</td>
                            <td>借款编号</td>
                            <td>所属产品</td>
                            <td>客户姓名</td>
                            <td>期限</td>
                            <td>借款金额</td>
                            <td>合同编号</td>
                            <td>业务员</td>
                            <td>部门</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody id="contract_management">

                        </tbody>

                        <tfoot class="public-botPage">
                        <tr>
                            <td>
                                <!-- 全选反选  -->
                                <input class="all_check" style="" type="checkbox"
                                       ng-click="F.ch_id_all($event,'ch_id')">
                            </td>
                            <td colspan="12">
                                <div class="public-botPage-left">
							<span>
								<span>全选</span>
							</span>
                                    <div class="se-re">
                                        <select id="allDown_select"
                                                class="tabHint mng ng-pristine ng-untouched ng-valid ng-not-empty"
                                                ng-model="selectType.default"
                                                ng-change="F.selectQuery('mng','ch_id')">
                                            <option value="-1" selected="selected">批量操作</option>
                                            <!-- ngIf: HbHr.hr104 -->
                                            <option ng-if="HbHr.hr104" value="下载合同" path="loanIng" data-type="4"
                                                    params="blankLoad" class="">下载合同
                                            </option><!-- end ngIf: HbHr.hr104 -->
                                        </select>
                                        <span class="se-po"></span>
                                    </div>
                                </div>
                                <div class="page-container contract-page-container public-botPage-right">
                                    <!-- 页码公共引进  'work/tems3/loanBefore/page/page.html'-->

                                </div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>

                <!--底部操作-->
            </div><!-- end ngIf: HbHr.hr101 -->

        </div>

        <%--还款计划--%>
        <div id="repayPlan_content" style="display: none">
            <%@include file="repayPlan.jsp" %>
        </div>
        <%--还款计划end--%>


    </div>

</div>
<%--付款对象--%>
<div class="winBox pay_object_winBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
        <div class="winBox2 ">
            <div class="payer">

                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">付款对象</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox">
                        <div class="resultPadd" id="paymentObject">
                        </div>

                        <script type="x-handlebars-template" id="paymentObject_tpl">

                            <div class="deleteTit">
                                <span class="first"><i class="iconfont icon-tips2"></i></span>
                                <span>您确定要更换付款对象？</span>
                            </div>
                            <div class="tdRadio">
                                <input type="radio" name="briskResult" ng-model="param.payment_object " value="{{#IF_EQ this 2}}2{{else}}1{{/IF_EQ}}"
                                       class="ng-pristine ng-untouched ng-valid ng-not-empty">不更换，还是{{#IF_EQ this 2}}第三方{{else}}客户{{/IF_EQ}}
                                <input type="radio" name="briskResult" ng-model="param.payment_object " value="{{#IF_EQ this 2}}1{{else}}2{{/IF_EQ}}"
                                       class="ng-pristine ng-untouched ng-valid ng-not-empty">更换，选择{{#IF_EQ this 2}}客户{{else}}第三方{{/IF_EQ}}
                            </div>
                            <!-- tab列表结束 -->
                            <!-- 底部 -->
                            <div class="deleFooter">
                                <div class="beizhu assBeizhu"><span>*</span>备注</div>
                                <textarea id="payObjectTarea" ng-focus="remHight()" ng-class="{'error':redErr.remarks}"
                                          ng-model="param.remarks" data-tag="textLength" showtag="zishuxians"

                                          class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                                <div class="deleBtn">
                                    <button id="payObjectBtn" style="background: #E55A5B;" ng-click="queding()">确定提交
                                    </button>
                                </div>
                                <div class="zishu">
                                    <i>200</i>字
                                </div>
                            </div>
                        </script>


                    </div>
                </div>


            </div>
        </div>
    </div>
</div>
<%--修改收款--%>
<div class="winBox modify_money_winBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
        <div class="winBox2 ">
            <div class="putloan">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">修改收款账号</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox">
                        <div class="resultPadd">
                            <table class="resultTab" style="margin-top: 20px;">
                                <tbody>
                                <!--收款账号 -->
                                <tr>
                                    <td>收款人</td>
                                    <td class="tdWei">
                                        <label style="width: 300px;">
                                            <input id="payee" style="width: 295px;" type="text" autocomplete="off"
                                                   ng-model="param.payee"
                                                   class="ng-pristine ng-untouched ng-valid ng-empty">
                                        </label>
                                    </td>
                                </tr>
                                <!--收款账号 -->
                                <tr>
                                    <td>收款账号</td>
                                    <td class="tdWei">
                                        <label style="width: 300px;">
                                            <input id="account" style="width: 295px;" type="text" autocomplete="off"
                                                   ng-model="param.account"
                                                   class="ng-pristine ng-untouched ng-valid ng-empty">
                                        </label>
                                    </td>
                                </tr>

                                <!--收款银行 -->
                                <tr>
                                    <td>收款银行</td>
                                    <td class="tdWei">
                                        <label style="width: 300px;">
                                            <input id="bank" style="width: 295px;" type="text" autocomplete="off"
                                                   ng-model="param.bank"
                                                   class="ng-pristine ng-untouched ng-valid ng-empty">
                                        </label>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <!-- 底部 -->
                            <div class="deleFooter">
                                <div class="deleBtn">
                                    <button style="background: #E55A5B;" id="modifyCommit">确定提交</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--退回订单--%>
<div class="winBox back_order_winBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
        <div class="winBox3 ">
            <div class="payer">

                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">退回订单</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox">
                        <div class="resultPadd">
                            <div class="deleteTit">
                                <span class="first"><i class="iconfont icon-tips2"></i></span>
                                <span>您确定要退回订单？</span>
                            </div>
                            <!-- tab列表结束 -->
                            <!-- 底部 -->
                            <div class="deleFooter" style="padding-top: 0;">
                                <div class="beizhu assBeizhu"><span>*</span>备注</div>
                                <textarea class="backRemark" ng-focus="remHight()" ng-class="{'error':redErr.reason}"
                                          ng-model="param.reason" data-tag="textLength" showtag="zishuxians"

                                          class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                                <div class="deleBtn">
                                    <button class="backProcess" style="background: #E55A5B;" ng-click="queding()">确定退回
                                    </button>
                                </div>
                                <div class="zishu">
                                    <i id="zishuxians">200</i>字
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>
<%--合同待定--%>
<div class="winBox determineWinbox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：提交评审弹窗 -->
        <div class="winBox5 ">
            <div>
                <div class="headerBox">
                    <!-- ngIf: recheckLoan==2 --><span class="headerSpan " ng-if="recheckLoan==2">确认待定</span>
                    <!-- end ngIf: recheckLoan==2 -->
                    <!-- ngIf: recheckLoan==1 -->
                    <!-- ngIf: recheckLoan==3 -->
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 底部 -->
                    <div class="deleteTit">
                        <span class="first"><i class="iconfont icon-tips2"></i></span>
                        <!-- ngIf: recheckLoan==1 || recheckLoan==2 --><span ng-if="recheckLoan==1 || recheckLoan==2"
                                                                             class="">您确定转合同待定？</span>
                        <!-- end ngIf: recheckLoan==1 || recheckLoan==2 -->
                        <!-- ngIf: recheckLoan==3 -->
                    </div>
                    <div class="deleFooter">
                        <div class="beizhu assBeizhu"><span>*</span>备注</div>
                        <textarea class="undeterminedRemark"></textarea>
                        <div class="deleBtn">
                            <button id="determineBtn">确认提交
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<%--上传登记--%>
<div class="winBox UploadaRegister_Winbox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box" style=""><!-- 说明：上传登记 -->
        <div class="winBox2 " style="">
            <div class="plegregister" style="">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">红本抵押</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox" style="">
                    <div class="centerBox" style="">
                        <div class="resultPadd" style="">
                            <div class="deleteTit">
                                <span class="first"><i class="iconfont icon-tips2"></i></span>
                                <span>您确认已完成线下抵押工作?</span>
                            </div>
                            <table class="resultTab" style="">
                                <tbody style="">
                                <tr>
                                    <td><span style="color: #D5332C;font-weight: bold;">*</span>抵押权：</td>
                                    <td class="only-input">
                                        <input id="mortgageInput" ng-focus="remHight()"
                                               ng-class="{'error':redErr.mortgage}" type="text"
                                               ng-model="param.mortgage" placeholder="请输入抵押权"
                                               class="ng-pristine ng-untouched ng-valid ng-empty">
                                    </td>
                                </tr>
                                <tr style="">
                                    <td><span style="color: #D5332C;font-weight: bold;">*</span>图片上传</td>
                                    <td class="unload" style="">
                                        <em id="imgTerm_0" style="margin-top: 14px" class="viewPic"
                                            data-id="抵押">上传图片</em>
                                        <div class="imgArr minImg" style="margin-top:10px">
                                            <span style="display: none" class="_pre " ng-if="item.isImg"
                                                  ng-click="_pre(key)"></span>
                                            <div class="cover" style="overflow-y: hidden;
    height: 70px;
    margin: 0 24px;">
                                                <div id="gallery7" attachid="抵押" style="position: relative; left: 0;">
                                                </div>
                                            </div>
                                            <span style="display: none" class="_next "></span>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <%--<table class="resultTab approve" style="margin-top: 20px">
                                <tbody class="role_list">
                                <tr class="esa">
                                    <td><span style="color: #FF0404;">*</span>审核结果：</td>
                                    <td>
                                        <label><input type="radio" name="faceResult" value="1" ng-model="param.faceResult" class="ng-pristine ng-untouched ng-valid ng-empty">审核通过</label>
                                        <label><input type="radio" name="faceResult" value="2" ng-model="param.faceResult" class="ng-pristine ng-untouched ng-valid ng-empty">拒绝审核</label>
                                    </td>
                                </tr>
                                </tbody>
                            </table>--%>
                            <!-- tab列表结束 -->
                            <!-- 底部 -->
                            <div class="deleFooter">
                                <div class="beizhu assBeizhu"><span style="color: #D5332C;font-weight: bold;">*</span>提交备注
                                </div>
                                <textarea id="mortgageTextarea" ng-focus="remHight()"
                                          ng-class="{'error':redErr.remarks}" ng-model="param.remarks"
                                          data-tag="textLength" showtag="zishuxians"
                                          class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                                <div class="deleBtn">
                                    <button style="background: #E55A5B;" id="commit_uploadaRegister">确定提交</button>
                                    <button style="background:white;" class="cancelWindow" ng-click="F.showWin('hide')">
                                        取消确定
                                    </button>
                                </div>
                                <div class="zishu">
                                    <i id="">200</i>字
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="x-handlebars-template" id="contract_head_date_tpl">
    <div class="se-re">
        <select ng-options="a.id as a.atName for a in fenQi" ng-model="param.atId"
                class="ng-pristine ng-untouched ng-valid ng-empty data_select">
            <option value="" class="" selected="selected">分期</option>
            {{#each content}}
            <option label="{{atName}}" value="{{id}}">{{atName}}</option>
            {{/each}}
        </select>
        <span class="se-po"></span>
    </div></script>

<script type="x-handlebars-template" id="contract_management_tpl">

    {{#if content.content.list}}
    {{#each content.content.list}}

    <tr ng-repeat="i in data.content.list" ng-click="F.tabClick($event)"
        class="table-tr-hover ">
        <td style="display: none">{{addOne @index}}</td>
        <td><input type="checkbox" name="ch_id" value="{{id}}"></td>
        <td class="">{{found_time}}</td>
        <td>{{#IF_GT before_s_id node_id}}<span style="background: #e55a5b; padding: 3px 15px; color: #fff;">{{loan_number}}</span>{{else}}{{loan_number}}{{/IF_GT}}
        <td class="">{{product_name}}</td>
        <td class="">{{personal_name}}</td>
        <td class="">{{#IF_EQ repayment_way '4'}}{{#if at_id}}{{at_id}}天{{/if}}{{else}}{{term_name}}{{/IF_EQ}}</td>
        <td class="">￥{{#thounsandBit apply_money}}{{/thounsandBit}}</td>
        <td class="yellowBg"><span class="">
                                    {{#if contract_no}}
                                    {{contract_no}}
                                    {{else}}
                                    --
                                    {{/if}}
                                </span></td>
        <td class="">{{user_name}}</td>
        <td class="">
            {{#if d_name}}
            {{#if d_name3}}{{d_name3}}&gt;&nbsp;{{/if}}{{#if d_name2}}{{d_name2}}&gt;&nbsp;{{/if}}{{#if
            d_name}}{{d_name}}{{/if}}
            {{/if}}
        </td>
        <td class="">{{s_name}}</td>
        <td class="big-last-td">
            <div class="se-re sel-blue">
                <select ng-click="F.stopPropagation($event)" data-id="{{id}}" data-oid="{{id}}" data-productid="{{product_id}}"
                        data-taskid="{{task_id}}" data-nodeid="{{node_id}}" data-loan_way="{{loan_way}}"
                        data-paymentobject="{{payment_object}}" data-pid="{{pid}}" data-repayment_way="{{repayment_way}}"
                        class="operation_list tabHint tt683 ng-not-empty"
                        ng-model="selectType.default" ng-change="F.selectQuery('tt683')">
                    <option value="-1" selected="selected">选择操作</option>
                    {{#each ../fourthMenus}}
                    <option value="{{key}}" data-type="1"
                            style="{{#IF_EQ key 'rejectOrder'}}display:none{{/IF_EQ}}{{#IF_EQ key 'signeContract'}}display:none{{#if ../../contract_no}}display:block{{/if}}{{/IF_EQ}}{{#IF_EQ key 'uploadSign'}}display:none{{#IF_EQ ../../loan_way 2}}display:block{{/IF_EQ}}{{/IF_EQ}}">{{name}}
                    <%--{{#IF_EQ key 'signedContract'}}{{#if ../../contract_no}}<option value="{{key}}">{{name}}</option>{{else}}{{/if}}{{else}}<option value="{{key}}">{{name}}</option>{{/IF_EQ}}
                    {{#IF_EQ key 'uploadSign'}}{{#IF_EQ ../../loan_way 2}}<option value="{{key}}">{{name}}</option>{{else}}{{/IF_EQ}}{{else}}{{/IF_EQ}}--%>
                    {{/each}}
                    <!-- ngIf: HbHr.hr102 -->
                    <%--<option ng-if="HbHr.hr102" value="1" path="common" data-type="1"
                            data-id="{{id}}"
                            data-productid="{{product_id}}"
                            params="orderShow"
                            param="id:683,orderHead:ContractMng,nowPage:ContractMng"
                            class="">查看订单
                    </option><!-- end ngIf: HbHr.hr102 -->
                    <option ng-if="HbHr.hr356" data-pid="{{pid}}" data-oid="{{id}}" value="7" path="loanIng"
                            params="modifyAccountInfo"
                            param="id:683,pid:975" class="">修改收款
                    </option><!-- end ngIf: HbHr.hr356 -->
                    <!-- ngIf: HbHr.hr355 -->
                    <option ng-if="HbHr.hr355" value="8" path="loanIng" params="orderReturn"
                            param="id:683,pid:975,nowPage:ContractMng" class="">退回订单
                    </option><!-- end ngIf: HbHr.hr355 -->
                    <option ng-if="HbHr.hr102" value="1" path="common" data-type="1"
                            data-id="{{id}}"
                            data-productid="{{product_id}}"
                            params="orderShow"
                            param="id:683,orderHead:ContractMng,nowPage:ContractMng"
                            class="">查看订单
                    </option><!-- end ngIf: HbHr.hr102 -->
                    <!-- ngIf: HbHr.hr103 -->
                    <option ng-if="HbHr.hr103" value="2" path="loanIng" data-type="1"
                            data-id="{{id}}"
                            params="crtContrat" param="id:683,contract_no:,content:" class="">
                        合同编号
                    </option><!-- end ngIf: HbHr.hr103 -->
                    <!-- ngIf: HbHr.hr104 -->
                    <option ng-if="HbHr.hr104" value="3" path="loanIng" params="lotsLoad"
                            data-id="{{id}}"
                            param="id:683,type:1,nowPage:ContractMng" class="">批量下载
                    </option><!-- end ngIf: HbHr.hr104 -->
                    <!-- ngIf: HbHr.hr105 -->
                    <option ng-if="HbHr.hr105" data-id="{{id}}" value="4" path="loanIng"
                            data-type="1"
                            params="BagPoAssessCheck" param="s_id:10,id:683,contract_no:"
                            class="">还款计划
                    </option><!-- end ngIf: HbHr.hr105 -->
                    <!-- ngIf: HbHr.hr356 -->
                    {{#if contract_no}}
                    <option ng-if="HbHr.hr105" data-id="{{id}}" value="10" path="loanIng"
                            data-type="1" data-taskid="{{task_id}}"
                            params="BagPoAssessCheck" param="s_id:10,id:683,contract_no:"
                            class="">已签合同
                    </option>
                    {{/if}}
                    {{#if_eq loan_way 2}}
                    <option ng-if="HbHr.hr105" data-id="{{id}}" value="5" path="loanIng"
                            data-type="1" data-taskid="{{task_id}}"
                            params="BagPoAssessCheck" param="s_id:10,id:683,contract_no:"
                            class="">上传登记
                    </option>
                    {{/if_eq}}
                    <option ng-if="HbHr.hr107" data-id="{{id}}" value="6" path="loanIng" params="payer"
                            param="id:683" class="">付款对象
                    </option><!-- end ngIf: HbHr.hr107 -->
                    <option ng-if="HbHr.hr356" data-pid="{{pid}}" data-oid="{{id}}" value="7" path="loanIng"
                            params="modifyAccountInfo"
                            param="id:683,pid:975" class="">修改收款
                    </option><!-- end ngIf: HbHr.hr356 -->
                    <!-- ngIf: HbHr.hr355 -->
                    <option ng-if="HbHr.hr355" value="8" path="loanIng" params="orderReturn"
                            param="id:683,pid:975,nowPage:ContractMng" class="">退回订单
                    </option><!-- end ngIf: HbHr.hr355 -->
                    <option ng-if="HbHr.hr355" data-id="{{id}}" value="9" path="loanIng"
                            params="orderReturn"
                            param="id:683,pid:975,nowPage:ContractMng" class="">合同待定
                    </option>--%>
                    <!-- ngIf: HbHr.hr106 &&i.contract_no!=null -->
                    <!-- ngIf: HbHr.hr107 -->
                </select>
                <span class="se-po-blue"></span>
            </div>
            <!-- ngIf: HbHr.hr249 -->
            <button class="operations_record tabHint btnQuery683"
                    ng-click="F.btnQuery('btnQuery'+i.id);$event.stopPropagation();"
                    path="loanBefore" params="record" param="Table:t_order,tableId:683"
                    ng-if="HbHr.hr249" id="{{id}}">
                操作记录
            </button><!-- end ngIf: HbHr.hr249 -->
        </td>
    </tr>
    {{/each}}
    {{else}}
    <tr ng-if="data.content.list.length ==0" class="">
        <td colspan="16">暂时找不到数据</td>
    </tr>
    {{/if}}
</script>

<div class="winBox contract_winBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box" style=""><!-- 说明：弹窗 -->
        <div class="winBox2 " style="">
            <div class="contrtsign" style="">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">已签合同</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox" style="">
                    <div class="centerBox" style="max-height: 524px;">
                        <div class="resultPadd" style="">
                            <table class="resultTab" style="margin-top: 20px;">
                                <tbody style="">
                                <tr>
                                    <td><span class="red">*</span>订单渠道：</td>
                                    <td class="tdSelect">
                                        <div class="se-re">
                                            <select id="orderSource_content">
                                            </select>
                                            <span class="se-po se-box"></span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>借款合同</td>
                                    <td class="unload">
                                        <em id="imgTerm_0" style="margin-top: 14px" class="viewPic" data-id="借款合同"
                                            data-attachname="协会调查">上传图片</em>
                                        <div class="imgArr minImg" style="margin-top:10px">

                                            <span class="_pre" ng-if="item.isImg"
                                                  ng-click="_pre(key)" style="display: none;"></span>
                                            <div class="cover" style="overflow-y: hidden;
    height: 70px;
    margin: 0 24px;">
                                                <div id="gallery12" attachid="借款合同" attachname="协会调查">

                                                </div>
                                            </div>
                                            <span class="_next" ng-if="item.isImg"
                                                  ng-click="_next(key)" style="display: none;"></span>
                                        </div>
                                    </td>
                                </tr>
                                <!-- ngRepeat: (key,item) in conType track by $index -->
                                </tbody>
                            </table>
                            <table class="resultTab" style="margin-top: 15px;">
                                <tbody class="role_list"><!-- ngIf: ishow.a == 1 -->
                                <!-- ngIf: ishow.b == 1 -->
                                <tr>
                                    <td>回执证明</td>
                                    <td class="unload">
                                        <em id="imgTerm_0" style="margin-top: 14px" class="viewPic" data-id="回执证明"
                                            data-attachname="协会调查">上传图片</em>
                                        <div class="imgArr minImg" style="margin-top:10px">

                                            <span class="_pre" ng-if="item.isImg"
                                                  ng-click="_pre(key)" style="display: none;"></span>
                                            <div class="cover" style="overflow-y: hidden;
    height: 70px;
    margin: 0 24px;">
                                                <div id="gallery11" attachid="回执证明" attachname="协会调查">

                                                </div>
                                            </div>
                                            <span class="_next" ng-if="item.isImg"
                                                  ng-click="_next(key)" style="display: none;"></span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>业务员参股</td>
                                    <td>
                                        <label><input type="radio" name="shareOrderid" value="1">&nbsp;&nbsp;已参股&emsp;&emsp;</label>
                                        <label><input type="radio" name="shareOrderid" value="0">&nbsp;&nbsp;未参股</label>
                                    </td>
                                </tr>
                                <tr class="shareOrder public-content-tab " style="display: none">
                                    <td>&nbsp;</td>
                                    <td style="text-align: left;padding-left: 0;padding-top:5px;padding-bottom: 15px;">
                                        <div ng-repeat="(key,items) in _shareOrder track by $index"
                                             style="padding-bottom:5px;" class="">
                                            <span class="pad"><input type="text" style="width:150px;" placeholder="输入姓名"
                                                                     ng-model="items.shareName"
                                                                     class="sharePeople"></span>
                                            <span class="pad" style="margin-left:5px;"><input onlyinputnum="2"
                                                                                              placeholder="输入比例"
                                                                                              type="text"
                                                                                              style="width:80px"
                                                                                              ng-model="items.shareRatio"
                                                                                              class="shareRatio"> %</span>
                                            <span class="add addShare ">添加</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="esa">
                                    <td><span style="color: #FF0404;">*</span>审核结果：</td>
                                    <td>
                                        <label><input type="radio" name="faceResult" value="1"
                                                      ng-model="param.faceResult"
                                                      class="ng-pristine ng-untouched ng-valid ng-empty">审核通过</label>
                                        <label><input type="radio" name="faceResult" value="2"
                                                      ng-model="param.faceResult"
                                                      class="ng-pristine ng-untouched ng-valid ng-empty">拒绝审核</label>
                                    </td>
                                </tr>
                                <!-- ngIf: shareOrderid == 1 -->
                                <!--<tr ng-if="ishow.c == 1">-->

                                </tbody>
                            </table>

                            <%--<script type="text/x-handlebars-template" id="contractSigned_list_tpl">
                                {{#each contractList}}
                                {{#each this}}
                                {{#IF_EQ isExists 1}}
                                <!-- ngRepeat: item in data.downloadC.content.contractList --><tr ng-repeat="item in data.downloadC.content.contractList" class="">
                                    <td style="width: 0%!important;" class="">{{name}}</td>
                                    <td class="">{{size}}</td>
                                    <td ng-if="item.state=='正常'" class=""><i class="iconfont icon-zhengque1" style="color:rgb(122,202,124);"></i></td><!-- end ngIf: item.state=='正常' -->
                                </tr>
                                {{/IF_EQ}}
                                {{/each}}
                                {{/each}}
                            </script>--%>

                            <div class="deleFooter">
                                <div class="beizhu assBeizhu"><span>*</span>备注</div>
                                <textarea class="contractRemark"

                                ></textarea>
                                <div class="deleBtn">
                                    <button style="background: #E55A5B;" class="sureSign">确定签订</button>
                                    <button style="background:white;" class="delSign">取消确定</button>
                                </div>
                                <div class="zishu">
                                    <i id="zishuxians">200</i>字
                                </div>
                            </div>
                        </div>


                    </div>
                </div>


            </div>
        </div>
    </div>
</div>


<div class="winBox contract_type_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
        <div class="winBox2 ">
            <div class="payer">

                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">选择类型</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox">
                        <div class="resultPadd">
                            <div class="beizhu assBeizhu">描述</div>
                            <ul class="public-ulList" style="padding-top: 0px" ng-show="loanIngShow">
                                <li>显示拥有该栏目管理权限的数据；</li>
                                <li>拥有权限的管理员会显示对应的操作按钮；</li>
                                <li>显示所属分公司下的所有业务员的合同</li>
                            </ul>
                            <table class="resultTab approve" style="margin: 20px 0px">
                                <tbody class="role_list">
                                <tr class="esa" id="loanType">
                                    <td><span style="color: #FF0404;">*</span>选择类型：</td>
                                    <td>
                                        <label><input type="radio" name="contractType" value="1" class="ng-pristine ng-untouched ng-valid ng-empty">首月扣款</label>
                                        <label><input type="radio" name="contractType" value="2" class="ng-pristine ng-untouched ng-valid ng-empty">末月扣款</label>
                                    </td>
                                </tr>
                                <tr class="esa">
                                    <td><span style="color: #FF0404;">*</span>放款类型：</td>
                                    <td>
                                        <label><input type="radio" name="loan_type" value="1" class="ng-pristine ng-untouched ng-valid ng-empty">整额放款</label>
                                        <label><input type="radio" name="loan_type" value="2" class="ng-pristine ng-untouched ng-valid ng-empty">扣除费用放款</label>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="deleBtn" style="margin-bottom: 20px">
                                <button style="background: #E55A5B;" id="preserve">确定提交</button>
                            </div>
                            <!-- tab列表结束 -->
                            <!-- 底部 -->
                        </div>


                    </div>
                </div>


            </div>
        </div>
    </div>
</div>

<div class="winBox package_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box --><div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
    <div class="winBox3 ">
        <div class="lotsload">
            <div class="downChose downloading">
                <div class="headerBox">
                    <span class="headerSpan">批量下载</span>
                    <!--<i class="iconfont icon-wrong headerIcon" ng-click="showWin('hide')"></i>-->
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 底部 -->
                    <div class="prog-text">下载中建议不要关闭该页面，下载成功弹窗会自动隐藏！</div>
                    <div class="prog-prog">
				<span class="prog-f">
					<span class="prog-c" style="width: 376px;"></span>
				</span>
                        <span class="prog-rate"><i class="">0</i>%</span>
                    </div>

                </div>
            </div>

            <div class="lotsload downloaded">

                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">批量下载</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="closeRef()"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox" style="max-height: 600px; overflow-y: auto;">
                        <div class="resultPadd">
                            <div class="deleteTit">
                                <span class="frist"><i class="iconfont icon-zhengque1"></i></span>
                                <span>已打包，压缩包里面包含如下文件！</span>
                            </div>
                            <div class="beizhu beizhu-pq"><span>*</span>打包明细</div>
                            <table class="dataListTab D-loan-table">
                                <thead>
                                <tr>
                                    <td style="width: 0%!important;">文档名称</td>
                                    <td>大小</td>
                                    <td>状态</td>
                                </tr>
                                </thead>
                                <tbody id="detail_list">
                                </tbody>
                            </table>
                            <script type="text/x-handlebars-template" id="detail_list_tpl">
                                {{#each contractList}}
                                {{#each this}}
                                {{#IF_EQ isExists 1}}
                                <!-- ngRepeat: item in data.downloadC.content.contractList --><tr ng-repeat="item in data.downloadC.content.contractList" class="">
                                    <td style="width: 0%!important;" class="">{{name}}</td>
                                    <td class="">{{size}}</td>
                                    <td ng-if="item.state=='正常'" class=""><i class="iconfont icon-zhengque1" style="color:rgb(122,202,124);"></i></td><!-- end ngIf: item.state=='正常' -->
                                </tr>
                                {{/IF_EQ}}
                                {{/each}}
                                {{/each}}
                            </script>
                            <!-- tab列表结束
                            <!-- 底部 -->
                            <div class="deleFooter">

                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div></div>
</div>


<div class="winBox cover_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明： 选择已有客户 -->
        <div class="winBox3 ">
            <div class="deleteBox">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">恢复申请</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 中间列表 -->
                    <div class="deleteTit">
			<span class="first">
				<i class="iconfont icon-tips2"></i>
			</span>
                        <span>您确定要恢复？</span>
                    </div>
                    <div class="beizhu"><span>*</span>备注</div>
                    <textarea class='coverRemarks' ng-focus="remHight()" ng-class="{'error':redErr.remarks}" data-tag="textLength" showtag="zishuxians"  ng-model="reason" class="ng-pristine ng-valid ng-empty ng-valid-maxlength ng-touched"></textarea>
                    <!-- 底部 -->
                    <div class="deleFooter">
                        <div class="deleBtn">
                            <button class="sureCover">确定恢复</button>
                            <button class="canCover">取消恢复</button>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/x-handlebars-template" id="role_list_tpl">
    <tr class="role">
        <td><span class="red">*</span>提交对象：</td>
        <td class="tdSelect">
            <div class="se-re">
                <select>
                    <option value="">选择人员</option>
                    {{#each admins}}
                    {{#if realName}}
                    <option value="{{id}}">{{realName}}</option>
                    {{/if}}
                    {{/each }}
                </select>
                <span class="se-po se-box"></span>
            </div>
        </td>
    </tr>
</script>


<%--<script type="text/x-handlebars-template" id="role_list_tpl">
    <option value="">选择人员</option>
    {{#each admins}}
    {{#if realName}}
    <option value="{{id}}">{{realName}}</option>
    {{/if}}
    {{/each }}
</script>--%>

<script type="text/x-handlebars-template" id="orderSource_content_tpl">
    <option>请选择</option>
    {{#each .}}
    <option data-id="{{id}}">{{osName}}</option>
    {{/each}}
</script>

<link href="static/css/viewer.css" rel="stylesheet"/>
<script type="text/javascript" src="static/js/jquery-plugin/viewer-fake.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/page/loanIng/contract_management.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>

<%--<script type="text/javascript" src="static/js/page/set/common/system_set_top.js"></script>--%>
<%--<script type="text/javascript" src="static/js/jquery-plugin/Intelligent_association.js"></script>--%>
<%--<script type="text/javascript" src="static/js/page/loanBefore/orderIn.js"></script>--%>

<%@ include file="../../common/web_bottom.jsp" %>
